<%-- 
    Document   : lista-modulos
    Created on : 28/03/2010, 01:28:54 PM
    Author     : Gregorovichz Carlos Rossi
--%>

<%@page contentType="application/json" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
[
        <s:set id="i" value="0"/>
        <s:iterator id="modulo" value="%{lstModulos}">
            <s:if test="%{#i>0}">,</s:if>
            {
                text: "${cmoduDescripcion}",
                id: "${cmoduDescripcion}",
                cls: "folder",
                children:
                [
                <s:set id="j" value="0"/>
                <s:iterator value="%{#modulo.lstRecursos}">
                    <s:if test="%{#j>0}">,</s:if>
                    {
                        text: "${crecuNombre}",
                        id: "${crecuNombre}",
                        cls: "folder",
                        leaf: true,
                        url:"${crecuUrl}",
                        cargarPantalla: function(){
                            ${crecuUrl}
                        }
                    }
                    <s:set id="j" value="%{#j+1}"/>
                </s:iterator>
                ]
            }
            <s:set id="i" value="%{#i+1}"/>
    </s:iterator>
]
